package com.kaifamiao.demo.d0716;

public class TypeDemo {

    public static void main(String[] args) {
        // 数字默认为 int
        long lon = 10;
        long lon1 = 10L; // L 不影响值.标志
        // 浮点数默认是 double
        float fl = 10.8f;
        double dou = 10.8;
        double dou1 = 10.8D;
        // 数字可以连接符 拼接
        int a = 100_000_000;
        double d = 10_9_8.7_5;

        System.out.println(a);
        System.out.println(d);
        System.out.println(lon1);
    }
}
